package com.java.demo.data;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @auther zhangwj
 * @date 2020/4/23 9:57 上午
 */
public class Demo {

    private final static Logger logger = LoggerFactory.getLogger(Demo.class);


    public static void main(String[] args) {
        System.out.println(Type.OEN.isType(2));
    }

}

enum Type {

    OEN(1);

    private Integer type;

    Type(Integer type) {
        this.type = type;
    }

    public Integer getType() {
        return type;
    }

    public boolean isType(Integer type) {
        return this.getType().equals(type);
    }
}
